from .base import Base
from sqlalchemy.schema import Column
from sqlalchemy.types import Integer, UnicodeText
from sqlalchemy.databases.mysql import MSEnum

__all__ = ['Permission']

class PermissionAccess:
    NoAccess = "No Access"
    ReadOnly = "Read Only"
    FullControl = "Full Control"

class Permission(Base):
    __tablename__ = 'permissions'
    
    id = Column(Integer, primary_key=True)
    name = Column(UnicodeText)
    access = Column(MSEnum(PermissionAccess.NoAccess, PermissionAccess.ReadOnly, PermissionAccess.FullControl))
    